﻿<Window x:Class="DTC.Popups.DoctorPopup"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:Validations="clr-namespace:DTC.Validations"
    Title="Врач" Style="{StaticResource PopupWindow}" Height="350" Width="360"
        Closing="Window_Closing"
        Loaded="Window_Loaded">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/Brushes.xaml"/>
                <ResourceDictionary Source="../Resources/ButtonsStyles.xaml"/>
                <ResourceDictionary Source="../Resources/ComboBoxesStyles.xaml"/>
                <ResourceDictionary Source="../Resources/TextEditStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <StackPanel Name="MainStackPanel" Margin="10" VerticalAlignment="Center">
        <WrapPanel>
            <TextBlock Foreground="{StaticResource MarkingFontColor}"
                       Text="Фамилия: "
                       VerticalAlignment="Center"/>
            <TextBox Name="SurnameTextBox"
                     Width="200"
                     Margin="5,0,0,0">
					 <TextBox.Text>
					 <Binding Path="Surname"
					 			NotifyOnValidationError="True">
                     	<Binding.ValidationRules>
                        	<Validations:EmptyValidate/>
                        </Binding.ValidationRules>
                     </Binding>
					 </TextBox.Text>
			</TextBox>
        </WrapPanel>
        <WrapPanel Margin="0,15,0,0">
            <TextBlock Foreground="{StaticResource MarkingFontColor}"
                       Text="Имя: "
                       VerticalAlignment="Center"/>
            <TextBox Name="NameTextBox" 
                     Width="225"
                     Margin="5,0,0,0">
					 <TextBox.Text>
					 	<Binding Path="Name"
						NotifyOnValidationError="True">
                                <Binding.ValidationRules>
                                    <Validations:EmptyValidate/>
                                </Binding.ValidationRules>
                            </Binding>
					 </TextBox.Text>
					 </TextBox>
        </WrapPanel>
        <WrapPanel Margin="0,15,0,0">
            <TextBlock Foreground="{StaticResource MarkingFontColor}"
                       Text="Отчество: "
                       VerticalAlignment="Center"/>
            <TextBox Name="FathernameTextBox"
                     Width="199"
                     Margin="5,0,0,0">
					 <TextBox.Text>
					 <Binding Path="Fathername"
					 	NotifyOnValidationError="True">
                                <Binding.ValidationRules>
                                    <Validations:EmptyValidate/>
                                </Binding.ValidationRules>
                            </Binding>
					 </TextBox.Text>
					 </TextBox>
        </WrapPanel>
        <WrapPanel Margin="0,15,0,0">
            <TextBlock Foreground="{StaticResource MarkingFontColor}"
                       Text="Специализация: "
                       VerticalAlignment="Top"
                       Margin="0,3,0,0"/>
            <ComboBox Name="SpecialComboBox"
                      Width="167"
                      Margin="5,0,0,0"
                      Height="23" 
                      IsEditable="True"
                      DisplayMemberPath="Name"/>
					  
        </WrapPanel>

    </StackPanel>
</Window>
